//
//  TwentyThreeViewController.m
//  项目二
//
//  Created by rimi on 16/5/17.
//  Copyright © 2016年 objective. All rights reserved.
//

#import "TwentyThreeViewController.h"
#import "HShowAlertUtils.h"
#import "Rview.h"
@interface TwentyThreeViewController ()

@end

@implementation TwentyThreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"点击";
    Rview *rview = [[Rview alloc]initWithOriginPoint:CPM(100, 100)];
    [self.view addSubview:rview];
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    UITouch *touch = [touches anyObject];
    
    CGPoint touchPoint = [touch locationInView:self.view];
    
    int stringFloat = (int)(touchPoint.x);/**x坐标的触点*/
    int stringFloat1 = (int)(touchPoint.y);/**y坐标的触点*/
    NSString *string = [NSString stringWithFormat:@"x%d y%d",stringFloat,stringFloat1];
    
    [HShowAlertUtils showAlertWithmessage:string viewController:self];
}


@end
